package com.bytz.modules.cms.product.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.modules.cms.common.excel.ExcelDictConvert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class ProductExcel {

    @ExcelProperty("商品编号")
    @ApiModelProperty(value = "商品编号")
    private String productNumber;

    @ExcelProperty("物料描述")
    @ApiModelProperty(value = "物料描述")
    private String materialDesc;

    @ExcelProperty("产品线编码")
    @ApiModelProperty(value = "产品线编码：SV/IV")
    private String productLineCode;

    @ExcelProperty("优惠分类")
    @ApiModelProperty(value = "优惠分类名字")
    private String discountCategoryName;

    @ExcelProperty("一级分类编号")
    @ApiModelProperty(value = "一级分类编号")
    private String hierarchyNumber;

    @ExcelProperty("产地")
    @ApiModelProperty(value = "产地")
    private String plant;

    @ExcelProperty("基准价")
    @ApiModelProperty(value = "基准价")
    private BigDecimal basePrice;

    @ExcelProperty("成本价")
    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ExcelProperty("替换商品编号")
    @ApiModelProperty(value = "替换商品编号")
    private String replaceProductNumber;

    @ExcelProperty(value = "上架状态(未上架/上架)", converter = ExcelDictConvert.class)
    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    @Dict(dicCode = "product_status")
    private String status;

    @ApiModelProperty(value = "预计交期时间")
    @ExcelProperty("交期(日)")
    private Integer deliveryDate;

    @ApiModelProperty(value = "最大订货数量")
    @ExcelProperty("最大订货数量（不限制则填0）")
    private Integer maxOrderQuantity;

    @ExcelProperty("备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    @ExcelProperty("是否删除（0否；1是）")
    @ApiModelProperty(value = "是否删除（0否；1是）")
    private Integer delFlag;
}